
export function checkEmail(emailInput) {
  var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
  if (!myreg.test(emailInput)) {
    return false;
  }
  else {
    return true;
  }
}

export function checkPhone(phone) {

  if(/^1[3456789]\d{9}$/.test(phone)){

    return true;
  }
  return false;
}
